package com.ciwong.epaper.bean;

import com.ciwong.mobilelib.bean.BaseBean;

/**
 * 登录返回的结果实体 Created by res-dlzhou on 2015/8/27.
 */
public class LoginTokenInfo extends BaseBean
{

//    private static final long serialVersionUID = 5054380313988838208L;
    /**
     * 习网token，
     */
    private MCToken token;

    /**
     * 第三方token
     */
    private OthToken othToken;

    public MCToken getToken()
    {
        return token;
    }

    public void setToken(MCToken token)
    {
        this.token = token;
    }

    public OthToken getOthToken()
    {
        return othToken;
    }

    public void setOthToken(OthToken othToken)
    {
        this.othToken = othToken;
    }

    /**
     * 登录类型常量类
     */
    public static class LoginType
    {
        /**
         * 登录类型:默认
         */
        public static final int LOGIN_TYPE_DEFAULT = 0;

        /**
         * 登录类型:QQ
         */
        public static final int LOGIN_TYPE_QQ = 1;

        /**
         * 登录类型:微信
         */
        public static final int LOGIN_TYPE_WEIXIN = 2;
    }

    /**
     * 第三方token
     */
    public class OthToken
    {
        private String access_token;

        private String expires_in;

        private String refresh_token;

        private String openid;

        private String scope;

        public String getAccess_token()
        {
            return access_token;
        }

        public void setAccess_token(String access_token)
        {
            this.access_token = access_token;
        }

        public String getScope()
        {
            return scope;
        }

        public void setScope(String scope)
        {
            this.scope = scope;
        }

        public String getExpires_in()
        {
            return expires_in;
        }

        public void setExpires_in(String expires_in)
        {
            this.expires_in = expires_in;
        }

        public String getRefresh_token()
        {
            return refresh_token;
        }

        public void setRefresh_token(String refresh_token)
        {
            this.refresh_token = refresh_token;
        }

        public String getOpenid()
        {
            return openid;
        }

        public void setOpenid(String openid)
        {
            this.openid = openid;
        }
    }
}
